package com.mccken.web.bean;

import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanNameGenerator;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @program: mccken-collect
 * @description:
 * @author: mccken
 * @create: 2023-12-26 22:21
 **/
public class McckenBeanDefinitionRegistrar implements ImportBeanDefinitionRegistrar {
	
	private String name;

	@Override
	public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, BeanNameGenerator importBeanNameGenerator) {
		ImportBeanDefinitionRegistrar.super.registerBeanDefinitions(importingClassMetadata, registry, importBeanNameGenerator);
		System.out.println("McckenBeanDefinitionRegistrar");
//		BeanDefinition beanDefinition = new GenericBeanDefinition();
//		registry.registerBeanDefinition("name", beanDefinition);
	}
	
	
}
